package com.dom.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description 系统自定义配置类
 * @Author xllei
 * @Date 2018/11/18 10:47 AM
 * @Version 1.0
 **/
@Data
@ConfigurationProperties(prefix = DomProperties.PREFIX)
public class DomProperties {
    public static final String PREFIX = "dom";

    /**
     * session失效时间
     */
    private Integer sessionTimeout = 30 * 60;

    /**
     * session验证失效时间
     */
    private Integer sessionValidationInterval = 15 * 60;
}
